package com.javastudy.jdkfeature.jdk5.generics;

/**
 * Created by admin on 2017/5/2.
 */
//构造一个Student类，继承与Person

public class Student extends Person{
    private String school;

    public Student(String name,int age,String school) {
        super(name,age);
        this.school = school;
    }

    public String getSchool() {
        return school;
    }

    @Override
    public String toString() {
        return "Student [school=" + school + "]";
    }

    public void setSchool(String school) {
        this.school = school;
    }

}

